package com.shangma.cn.commons.http;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 开发人员: 辉哥真球帅
 * 联系方式: zhengzhoudaxuevip@163.com
 * 创建时间: 2021/10/7  17:05
 * 文件含义:
 */

public enum AxiosStatus {

    OK(20000, "操作成功"),
    ERROR(50000, "操作失败"),
    FROM_UNVALID(33333, "表单校验失败"),
    XXXXX_EXCETION(33333, "未知异常"),
    NOT_IS_IMG(20010, "不是图片"),
    IMG_LENGTH_ERROR(20011, "图片尺寸不对"),
    IMG_EXT_NOT_RIGHT(20012, "图片格式不对"),
    IMG_SIZE_ERROR(20013, "图片大小不对"),
    ADMIN_DATA_NOT_WANSHAN(20200, "账户或者邮箱或者手机或者身份证号重复"),
    CODE_ERROR(20300, "验证码错误"),
    ACCOUNT_ERROR(20301, "用户名错误"),
    PASSWORD_ERROR(20302, "密码错误"),
    TOKEN_ERROR(22233, "令牌错误"),
    NO_PERM(44444, "无权限");;

    private int status;

    private String msg;

    AxiosStatus(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
